package com.shenmazong.controller;

import com.shenmazong.service.TbBrandService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.PageVo;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2022/1/17 16:47
 */

@RestController
@Slf4j
@RequestMapping(value = "/brand")
public class TbBrandController {

    @Autowired
    TbBrandService tbBrandService;

    @ApiOperation(value = "增加品牌")
    @PostMapping(value = "/add")
    public ResultResponse add() {
        return null;
    }

    @ApiOperation(value = "删除品牌")
    @PostMapping(value = "/del")
    public ResultResponse del() {
        return null;
    }

    @ApiOperation(value = "修改品牌")
    @PostMapping(value = "/set")
    public ResultResponse set() {
        return null;
    }

    @ApiOperation(value = "根据ID获取品牌信息")
    @PostMapping(value = "/getGoodsById")
    public ResultResponse getGoodsById() {
        return null;
    }


    @PostMapping(value = "/list")
    public ResultResponse list() {
        return null;
    }

    @PostMapping(value = "/getListByPage")
    public ResultResponse getListByPage(@RequestBody PageVo pageVo) {
        return tbBrandService.getListByPage(pageVo);
    }
}
